<?php

/**
 * Student form base class.
 *
 * @method Student getObject() Returns the current form's model object
 *
 * @package    ecollegeplus
 * @subpackage form
 * @author     Batanayi Matuku
 * @version    SVN: $Id: sfDoctrineFormGeneratedInheritanceTemplate.php 29553 2010-05-20 14:33:00Z Kris.Wallsmith $
 */
abstract class BaseStudentForm extends ProfileForm
{
  protected function setupInheritance()
  {
    parent::setupInheritance();

    $this->widgetSchema   ['number'] = new sfWidgetFormInputText();
    $this->validatorSchema['number'] = new sfValidatorString(array('max_length' => 255, 'required' => false));

    $this->widgetSchema   ['high_school'] = new sfWidgetFormInputText();
    $this->validatorSchema['high_school'] = new sfValidatorString(array('max_length' => 255, 'required' => false));

    $this->widgetSchema   ['studied_at'] = new sfWidgetFormInputText();
    $this->validatorSchema['studied_at'] = new sfValidatorString(array('max_length' => 255, 'required' => false));

    $this->widgetSchema   ['current_study'] = new sfWidgetFormInputText();
    $this->validatorSchema['current_study'] = new sfValidatorString(array('max_length' => 255, 'required' => false));

    $this->widgetSchema   ['enrollment'] = new sfWidgetFormChoice(array('choices' => array('Full time' => 'Full time', 'Part time' => 'Part time')));
    $this->validatorSchema['enrollment'] = new sfValidatorChoice(array('choices' => array(0 => 'Full time', 1 => 'Part time'), 'required' => false));

    $this->widgetSchema   ['status'] = new sfWidgetFormChoice(array('choices' => array('Application received' => 'Application received', 'Application accepted' => 'Application accepted', 'but not registered' => 'but not registered', 'Application rejected' => 'Application rejected', 'Not registered' => 'Not registered', 'Registered' => 'Registered', 'Expelled' => 'Expelled', 'Alumin' => 'Alumin', 'Withdrawn' => 'Withdrawn', 'Dropped out' => 'Dropped out')));
    $this->validatorSchema['status'] = new sfValidatorChoice(array('choices' => array(0 => 'Application received', 1 => 'Application accepted', 2 => 'but not registered', 3 => 'Application rejected', 4 => 'Not registered', 5 => 'Registered', 6 => 'Expelled', 7 => 'Alumin', 8 => 'Withdrawn', 9 => 'Dropped out'), 'required' => false));

    $this->widgetSchema->setNameFormat('student[%s]');
  }

  public function getModelName()
  {
    return 'Student';
  }

}
